package com.os.toytrade.domain.busi;

import com.jc.repository.dict.busi.BusiSetSaleInfo;
import com.jc.repository.generator.annotation.NotNull;
import java.io.Serializable;
import java.util.Date;

public class SetSaleInfo implements Serializable {

    private String id;

    private String busiSetId;

    private String saleUserId;

    private Double salePrice;

    private BusiSetSaleInfo status;

    private Date createdAt;

    private Date updatedAt;

    private String remarks;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBusiSetId() {
        return busiSetId;
    }

    public void setBusiSetId(String busiSetId) {
        this.busiSetId = busiSetId;
    }

    public String getSaleUserId() {
        return saleUserId;
    }

    public void setSaleUserId(String saleUserId) {
        this.saleUserId = saleUserId;
    }

    public Double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    public BusiSetSaleInfo getStatus() {
        return status;
    }

    public void setStatus(BusiSetSaleInfo status) {
        this.status = status;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SetSaleInfo other = (SetSaleInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBusiSetId() == null ? other.getBusiSetId() == null : this.getBusiSetId().equals(other.getBusiSetId()))
            && (this.getSaleUserId() == null ? other.getSaleUserId() == null : this.getSaleUserId().equals(other.getSaleUserId()))
            && (this.getSalePrice() == null ? other.getSalePrice() == null : this.getSalePrice().equals(other.getSalePrice()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBusiSetId() == null) ? 0 : getBusiSetId().hashCode());
        result = prime * result + ((getSaleUserId() == null) ? 0 : getSaleUserId().hashCode());
        result = prime * result + ((getSalePrice() == null) ? 0 : getSalePrice().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    public SetSaleInfo id(String value) {
        this.id = value;
        return this;
    }

    public SetSaleInfo busiSetId(String value) {
        this.busiSetId = value;
        return this;
    }

    public SetSaleInfo saleUserId(String value) {
        this.saleUserId = value;
        return this;
    }

    public SetSaleInfo salePrice(Double value) {
        this.salePrice = value;
        return this;
    }

    public SetSaleInfo status(BusiSetSaleInfo value) {
        this.status = value;
        return this;
    }

    public SetSaleInfo createdAt(Date value) {
        this.createdAt = value;
        return this;
    }

    public SetSaleInfo updatedAt(Date value) {
        this.updatedAt = value;
        return this;
    }

    public SetSaleInfo remarks(String value) {
        this.remarks = value;
        return this;
    }
}